home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource2
/
sclib_1
/
1_5
/
v7n5042a.txt
< prev
next >
Wrap
Text File
|
1995-11-01
|
805b
|
22 lines
/*
Interface to serial communications module
*/
#define BOOLEAN int
#define TRUE 1
#define FALSE 0
BOOLEAN sc_open(); /* returns TRUE if device was opened, FALSE
if device could not be opened */
void sc_close(); /* close the device */
BOOLEAN sc_dial(); /* returns TRUE if CONNECTed to the remote
system */
void sc_hangup();
BOOLEAN sc_read(); /* returns TRUE if pattern was found, FALSE
if time ran out */
void sc_write();
void sc_cleanup(); /* resets link port back to original
configuration, should be called from
the application before exiting if
sc_close will not be called */